$(function () {
    init();
})
function init() {
    $("#qhTable").bootstrapTable({
        height: "800px",
        url: "data.json"
    });
}

//用来
//用来
function myFormatter(value, row, index) {
    return "<input type='button' value='click'>"
}

function operateBtnFun(index) {

}

function totalFormatter(value, row, index) {
    var str = "<span style='color:red'>" + value + "</span>";
    if (value > 100) {
    } else {
        str = "<span style='color:lightseagreen'>" + value + "</span>"
    }
    return str;
}

function myQueryParams(params) {
    params["pageNum"] = (params.offset / params.limit) + 1;
    params.pageSize = params.limit;
    params.derection = "asc";
    params.sort = "id";
    params.orderCode = $("#orderCode").val() + "";
    return params;
}

function responseHandler(res) {
    var needData = {
        rows: res.row,
        total: res.total
    };
    return needData;
}
$(function(){
    $(".fixed-table-header table").css("display","none");
    $('#qhTable').css("margin-top","0px");
});
